from applications.extensions import db


class PsyTrainStatusModels(db.Model):
    __tablename__ = 'train_status'
    id = db.Column(db.Integer, primary_key=True, comment='主键')
    user_id = db.Column(db.Integer, comment='参训人员id')
    user_code = db.Column(db.String(50), comment='参训人员编号')
    user_name = db.Column(db.String(50), comment='参训人员名称')
    user_status = db.Column(db.String(50), comment='训练状态')
    time = db.Column(db.DateTime, comment='开始时间')
    weather = db.Column(db.String(50), default='sunny', comment='训练状态')
    control = db.Column(db.String(50), default='auto', comment='训练状态')
